using System;

namespace Mbs.Messaging
{
    [Serializable]
    public class PreFilterEventArgs<TMessage>
    {
        public object Sender { get; private set; }
        public TMessage Message { get; private set; }
        public bool Canceled { get; set; }
        public string Topic { get; private set; }

        public PreFilterEventArgs(object sender, TMessage message, string topic)
        {
            Sender = sender;
            Message = message;
            Topic = topic;
        }
    }
}
